package com.qfedu.springmvc02.controller;

import com.qfedu.springmvc02.entity.FastUser;
import com.qfedu.springmvc02.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/fast")
public class FastController {

    @RequestMapping("test")
    public FastUser test(){
        FastUser fastUser = new FastUser();
        fastUser.setName("王");
        fastUser.setPassword("1234");
        fastUser.setSalary(15.346);
        fastUser.setBirthday(new Date());
        fastUser.setMarriageDay(new Date());
        return fastUser;
    }
}
